Hi Russ,
You can not connect single ended encoder signals to Kanalog differential inputs and simply leave the other inputs floating. See:
Consider wiring your single ended MPG signals to KFLOP single ended encoder inputs.
But yes, for any hardware encoder input a KFLOP Axis Channel must be use to read the hardware and maintain the Position. You might use KFLOP Axis channel 6. Do not enable the Axis. Only configure it for Encoder Input and the Encoder Input Channel that it is wired to.
There is an option to move the hardware encoder inputs 0-3 from KFLOP JP7 over to JP4. You might find this useful because JP7 is used in your system by Kanalog. See the MuxEncoders.c example.
HTH Regards TK
Group: DynoMotion |
Message: 11238 |
From: Russ Larson |
Date: 3/18/2015 |
Subject: Re: MPG using file MPGSmoothHardwareEnc.c |
Tom, Thanks for your reply. I was worried about using the Kanalog differential inputs with the MPG. Last night I wired up a differential driver from CNC4PC to convert the MPG single ended encoder outputs to differential outputs. Now the MPG is connected A+A-B+B- to Kanalog JP1, the first four pins. I can't use JP2 at all because I don't have the J5 cable from Kflop to Kanalog, this was because I needed the need the first six pins of JP5 for the Step/Direction generators. I can still see digital IO 0,1 blink when I turn the MPG. Is there somewhere you can see it count, like on Ksnap? I have configured AXIS 6 with InputMode=Encoder, Output=StepDir, input channel0=0, it set outputchan0=6, think that should actually be 15 for LVTTL, for step direction generator 7, since I have already used 4,5, and 6. Not positive about this aspect. Not even sure if you need a step direction generator since you are actually generating the pulsed by rotating a wheel. In my init routine I know you do not enable Axis 6, but do I put in all the code like for the other axis's? Thanks Russ From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] Sent: Tuesday, March 17, 2015 9:21 PM To: DynoMotion@yahoogroups.com Subject: Re: [DynoMotion] MPG using file MPGSmoothHardwareEnc.c You can not connect single ended encoder signals to Kanalog differential inputs and simply leave the other inputs floating. See: Consider wiring your single ended MPG signals to KFLOP single ended encoder inputs. But yes, for any hardware encoder input a KFLOP Axis Channel must be use to read the hardware and maintain the Position. You might use KFLOP Axis channel 6. Do not enable the Axis. Only configure it for Encoder Input and the Encoder Input Channel that it is wired to. There is an option to move the hardware encoder inputs 0-3 from KFLOP JP7 over to JP4. You might find this useful because JP7 is used in your system by Kanalog. See the MuxEncoders.c example. Tom,
I started to play with my MPG and get it hooked up to my machine. I have a three axis machine using Axis channels 0,1,2 they are configured with outputs 12,13,14 respectively to get TTLV outputs and the movement of the machine is great no issues.
I have a KFLOP & KANALOG. Right now I am not using the differential encoder inputs on Kanalog, so I decided to hook up the MPG which has single ended encoder outputs A & B to pins 1 & 3 of JP1 on the Kanalog which corresponds to Channel A+ and Channel B+ respectively.
When I turn the MPG I can look on the digital page and see Encoder 0 A&B flash when I turn the wheel.
I can add the code to my init routine which is not an issue. The question is the example shows all the code for the MPG channel just like all the other channels so do I paste that in there as well?
I have the Ch0-> stuff for X Ch1-> stuff for Y Ch2-> stuff for Z
so do I have Ch6-> stuff for MPG???
Not real clear how to connect the dots. Thanks
Russ
|
|
Group: DynoMotion |
Message: 11240 |
From: Tom Kerekes |
Date: 3/18/2015 |
Subject: Re: MPG using file MPGSmoothHardwareEnc.c |
Hi Russ,
You should be able to see the Encoder Position for Axis 6 change on the Axis Screen when you move your MPG.
Regarding configuring Axis 6 for the encoder input. You are correct. All you are using is the Encoder Input. You do not want to have any Step/Direction output. It actually doesn't matter because you should never enable this axis (the encoder position for any axis is maintained whether or not the axis is enabled). But I would set the Output Mode to "No Output".
I would put all the configuration for Axis 6 into your Init C Program so it is completely configured. No reason to leave things in an undefined state even though certain things might not be currently used. This also makes it possible to import/export all the setting to the KMotion.exe screens.
HTH
Regards TK
Group: DynoMotion |
Message: 11241 |
From: Russ Larson |
Date: 3/18/2015 |
Subject: Re: MPG using file MPGSmoothHardwareEnc.c |
Tom, OK, just ran out and checked and indeed I can see the MPG count on the AXIS screen. Now I will add the initialization of AXIS 6 to my init.c along with the MPG code and see if it all works correctly. Already verified all the switches are being seen, so hopefully will complete this last big step. Thank you so much for all your help. Russ From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] Sent: Wednesday, March 18, 2015 12:28 PM To: DynoMotion@yahoogroups.com Subject: Re: [DynoMotion] MPG using file MPGSmoothHardwareEnc.c You should be able to see the Encoder Position for Axis 6 change on the Axis Screen when you move your MPG. Regarding configuring Axis 6 for the encoder input. You are correct. All you are using is the Encoder Input. You do not want to have any Step/Direction output. It actually doesn't matter because you should never enable this axis (the encoder position for any axis is maintained whether or not the axis is enabled). But I would set the Output Mode to "No Output". I would put all the configuration for Axis 6 into your Init C Program so it is completely configured. No reason to leave things in an undefined state even though certain things might not be currently used. This also makes it possible to import/export all the setting to the KMotion.exe screens. Thanks for your reply. I was worried about using the Kanalog differential inputs with the MPG. Last night I wired up a differential driver from CNC4PC to convert the MPG single ended encoder outputs to differential outputs. Now the MPG is connected A+A-B+B- to Kanalog JP1, the first four pins. I can't use JP2 at all because I don't have the J5 cable from Kflop to Kanalog, this was because I needed the need the first six pins of JP5 for the Step/Direction generators. I can still see digital IO 0,1 blink when I turn the MPG. Is there somewhere you can see it count, like on Ksnap? I have configured AXIS 6 with InputMode=Encoder, Output=StepDir, input channel0=0, it set outputchan0=6, think that should actually be 15 for LVTTL, for step direction generator 7, since I have already used 4,5, and 6. Not positive about this aspect. Not even sure if you need a step direction generator since you are actually generating the pulsed by rotating a wheel. In my init routine I know you do not enable Axis 6, but do I put in all the code like for the other axis's? Thanks You can not connect single ended encoder signals to Kanalog differential inputs and simply leave the other inputs floating. See: Consider wiring your single ended MPG signals to KFLOP single ended encoder inputs. But yes, for any hardware encoder input a KFLOP Axis Channel must be use to read the hardware and maintain the Position. You might use KFLOP Axis channel 6. Do not enable the Axis. Only configure it for Encoder Input and the Encoder Input Channel that it is wired to. There is an option to move the hardware encoder inputs 0-3 from KFLOP JP7 over to JP4. You might find this useful because JP7 is used in your system by Kanalog. See the MuxEncoders.c example. Tom,
I started to play with my MPG and get it hooked up to my machine. I have a three axis machine using Axis channels 0,1,2 they are configured with outputs 12,13,14 respectively to get TTLV outputs and the movement of the machine is great no issues.
I have a KFLOP & KANALOG. Right now I am not using the differential encoder inputs on Kanalog, so I decided to hook up the MPG which has single ended encoder outputs A & B to pins 1 & 3 of JP1 on the Kanalog which corresponds to Channel A+ and Channel B+ respectively.
When I turn the MPG I can look on the digital page and see Encoder 0 A&B flash when I turn the wheel.
I can add the code to my init routine which is not an issue. The question is the example shows all the code for the MPG channel just like all the other channels so do I paste that in there as well?
I have the Ch0-> stuff for X Ch1-> stuff for Y Ch2-> stuff for Z
so do I have Ch6-> stuff for MPG???
Not real clear how to connect the dots. Thanks
Russ
|
|
Group: DynoMotion |
Message: 11242 |
From: Russ Larson |
Date: 3/18/2015 |
Subject: Re: MPG using file MPGSmoothHardwareEnc.c |
Tom, Modified my Init.C code and now the MPG works fantastic. Thanks so much for your help. Russ From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] Sent: Wednesday, March 18, 2015 12:58 PM To: DynoMotion@yahoogroups.com Subject: RE: [DynoMotion] MPG using file MPGSmoothHardwareEnc.c Tom, OK, just ran out and checked and indeed I can see the MPG count on the AXIS screen. Now I will add the initialization of AXIS 6 to my init.c along with the MPG code and see if it all works correctly. Already verified all the switches are being seen, so hopefully will complete this last big step. Thank you so much for all your help. Russ You should be able to see the Encoder Position for Axis 6 change on the Axis Screen when you move your MPG. Regarding configuring Axis 6 for the encoder input. You are correct. All you are using is the Encoder Input. You do not want to have any Step/Direction output. It actually doesn't matter because you should never enable this axis (the encoder position for any axis is maintained whether or not the axis is enabled). But I would set the Output Mode to "No Output". I would put all the configuration for Axis 6 into your Init C Program so it is completely configured. No reason to leave things in an undefined state even though certain things might not be currently used. This also makes it possible to import/export all the setting to the KMotion.exe screens. Thanks for your reply. I was worried about using the Kanalog differential inputs with the MPG. Last night I wired up a differential driver from CNC4PC to convert the MPG single ended encoder outputs to differential outputs. Now the MPG is connected A+A-B+B- to Kanalog JP1, the first four pins. I can't use JP2 at all because I don't have the J5 cable from Kflop to Kanalog, this was because I needed the need the first six pins of JP5 for the Step/Direction generators. I can still see digital IO 0,1 blink when I turn the MPG. Is there somewhere you can see it count, like on Ksnap? I have configured AXIS 6 with InputMode=Encoder, Output=StepDir, input channel0=0, it set outputchan0=6, think that should actually be 15 for LVTTL, for step direction generator 7, since I have already used 4,5, and 6. Not positive about this aspect. Not even sure if you need a step direction generator since you are actually generating the pulsed by rotating a wheel. In my init routine I know you do not enable Axis 6, but do I put in all the code like for the other axis's? Thanks You can not connect single ended encoder signals to Kanalog differential inputs and simply leave the other inputs floating. See: Consider wiring your single ended MPG signals to KFLOP single ended encoder inputs. But yes, for any hardware encoder input a KFLOP Axis Channel must be use to read the hardware and maintain the Position. You might use KFLOP Axis channel 6. Do not enable the Axis. Only configure it for Encoder Input and the Encoder Input Channel that it is wired to. There is an option to move the hardware encoder inputs 0-3 from KFLOP JP7 over to JP4. You might find this useful because JP7 is used in your system by Kanalog. See the MuxEncoders.c example. Tom,
I started to play with my MPG and get it hooked up to my machine. I have a three axis machine using Axis channels 0,1,2 they are configured with outputs 12,13,14 respectively to get TTLV outputs and the movement of the machine is great no issues.
I have a KFLOP & KANALOG. Right now I am not using the differential encoder inputs on Kanalog, so I decided to hook up the MPG which has single ended encoder outputs A & B to pins 1 & 3 of JP1 on the Kanalog which corresponds to Channel A+ and Channel B+ respectively.
When I turn the MPG I can look on the digital page and see Encoder 0 A&B flash when I turn the wheel.
I can add the code to my init routine which is not an issue. The question is the example shows all the code for the MPG channel just like all the other channels so do I paste that in there as well?
I have the Ch0-> stuff for X Ch1-> stuff for Y Ch2-> stuff for Z
so do I have Ch6-> stuff for MPG???
Not real clear how to connect the dots. Thanks
Russ
|
|
| | | |